home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 1 / Meeting Pearls Vol 1 (1994).iso / installed_progs / text / faqs / inn-faq.part1 < prev    next >
Encoding:
Internet Message Format  |  1994-04-21  |  25.6 KB

  1. Subject: INN FAQ Part 1/4: General Information
  2. Newsgroups: news.software.nntp,news.software.b,news.answers
  3. From: tal@Warren.MENTORG.COM (Tom Limoncelli)
  4. Date: 20 Apr 1994 04:00:11 -0000
  5.  
  6. Posted-By: auto-faq 2.4
  7. Archive-name: inn-faq/part1
  8.  
  9. Last Changed: $Id: FAQ-inn.1,v 1.67 1994/04/15 21:12:30 tal Exp $
  10.  
  11.                   Part 1 of 4
  12.  
  13. INN FAQ Part 1/4: General Information:
  14.                      Questions from people that don't (yet) run INN
  15.                      Specific notes for specific operating systems
  16. INN FAQ Part 2/4: Debugging Guide & Tutorial:
  17. INN FAQ Part 3/4: Operational and Misc. Questions
  18. INN FAQ Part 4/4: Appendix A: Norman's install guide
  19.  
  20.  
  21. ------------------------------
  22.  
  23. Subject:  Table Of Contents for Part 1/4
  24.  
  25. =====================================================================
  26.         TABLE OF CONTENTS FOR PART 1/4:  General Information
  27. =====================================================================
  28.  
  29. QUESTIONS FROM PEOPLE THAT DON'T (YET) RUN INN:
  30.     Where can I get the INN software?
  31.     Where can I get the latest copy of this FAQ?
  32.     What is INN?
  33.     What machines does it run on?
  34.     INN must be really complicated since this FAQ is so long!
  35.     Can I run C News with INN?
  36.     Can I run NNTP with INN?
  37.     Can I run the reference implementation (NNTP1.5) with INN?
  38.     Can I run INN on my UUCP-only machine?
  39.     Suppose I have a 286 machine?
  40.     Does INN implement NOV, xthread (trn) or xuser/xmotd (tin) commands?
  41.     Is an ident or authorization protocol supported?
  42.     Does INN do UUCP batching like C News?
  43.     Help!  How do I configure this beast?
  44.     How do I thank the FAQ maintainer?
  45.  
  46. SPECIFIC NOTES FOR SPECIFIC OPERATING SYSTEMS:
  47.     AIX tips
  48.     SunOS 4.1.2 tips
  49.     Ultrix tips
  50.     HP-UX tips
  51.     Pyramid and system's where only root can have "cron" jobs.
  52.     System V based Unixes (SVR4, Solaris 2.x, SCO ODT 3.0, A/UX, ...)
  53.     Solaris 2.x special needs
  54.     Mac running A/UX 3.0
  55.     NOV problems on a Pyramid
  56.     Warnings to people that must set HAVE_UNIX_DOMAIN to DONT
  57.     Alpha OSF tips
  58.  
  59.  
  60. The FAQ was written by Rich $alz <rsalz@rodan.uu.net> and is now
  61. maintained by Tom Limoncelli <tal@warren.mentorg.com>.
  62.  
  63. These documents would not exist if it weren't for the people that have
  64. submitted questions and (most importantly) answers.  THANK YOU ALL!
  65.  
  66.  
  67. =====================================================================
  68.            QUESTIONS FROM PEOPLE THAT DON'T (YET) RUN INN
  69. =====================================================================
  70.  
  71.  
  72. ------------------------------
  73.  
  74. Subject:  Where can I get the INN software?
  75.  
  76. The official archive site is ftp.uu.net in the directory
  77. networking/news/nntp/inn.  Archie current lists over 30 archive sites;
  78. three other international sites are grasp.insa-lyon.fr in
  79. pub/unix/news/inn, munnari.oz.au in pub/news/inn, and src.doc.ic.ac.uk
  80. in computing/usenet/software/transport
  81.  
  82. The latest version of INN is 1.4sec.  This is rev. 1.4 with a slight
  83. modification of certain shell scripts to fix a security hole.  Do
  84. not run 1.4 without the patch (see part 3/4 of this FAQ).
  85.  
  86.  
  87. ------------------------------
  88.  
  89. Subject:  Where can I get the latest copy of this FAQ?
  90.  
  91. 1.  This four-part FAQ is available via FTP at any FTP site that carries
  92. INN itself.
  93.  
  94. 2.  This FAQ is also posted to news.software.nntp, news.software.b and
  95.     news.answers on the 5th and 20th of every month.
  96.  
  97. 3.  You can also get this FAQ by sending email to
  98. majordomo@warren.mentorg.com with "get file faq-inn-1" on the first
  99. line of the message.  (the Subject: of the message will be ignored.)
  100. (Substitute faq-inn-2, faq-inn-3 or faq-inn-4 to get those parts).
  101.  
  102. For example:
  103.  
  104. % echo get file faq-inn-1 | mail majordomo@warren.mentorg.com
  105. % echo get file faq-inn-2 | mail majordomo@warren.mentorg.com
  106. % echo get file faq-inn-3 | mail majordomo@warren.mentorg.com
  107. % echo get file faq-inn-4 | mail majordomo@warren.mentorg.com
  108.  
  109. or
  110.  
  111. % mail majordomo@warren.mentorg.com
  112. Subject: ignored
  113. get file faq-inn-1
  114. get file faq-inn-2
  115. get file faq-inn-3
  116. get file faq-inn-4
  117. ^D
  118.  
  119. or if you csh and are a total nerd, you can:
  120.     echo 'get file new-inn.'{1,2,3,4}@ \
  121.         | tr @ '\012' | mail majordomo@warren.mentorg.com
  122.  
  123. ...or get a real hobby.
  124.  
  125.  
  126. ------------------------------
  127.  
  128. Subject:  What is INN?
  129.  
  130. For a complete answer, why not read the Usenix paper that introduced
  131. INN to the world?  It's available as
  132. ftp.uu.net:networking/news/nntp/inn/inn.usenix.ps.Z
  133.  
  134. InterNetNews is a complete Usenet system.  The cornerstone of the package
  135. is innd, an NNTP server that multiplexes all I/O.  Think of it as an nntpd
  136. merged with the B News inews, or as a C News relaynews that reads multiple
  137. NNTP streams.  Newsreading is handled by a separate server, nnrpd, that is
  138. spawned for each client.  Both innd and nnrpd have some slight variances
  139. from the NNTP protocol (although in normal use you will never notice); see
  140. the manpages.  INN separates hosts that feed you news from those that have
  141. users reading news.  If you need to support a mixed environment you will have
  142. to do some extra work; the installation manual gives some hints.
  143.  
  144.  
  145. ------------------------------
  146.  
  147. Subject:  What machines does it run on?
  148.  
  149. If you have socket() and select() then INN will probably run on your
  150. machine.  In addition to the common platforms found around the Internet
  151. (SunOS and Ultrix, for example), INN runs on IBM`s AIX, Apple's A/UX,
  152. NeXT, Solaris 2.x, most SVR4 platforms, BSDI, most free BSD systems on
  153. Intel (NetBSD, FreeBSD, ...) and a host of others.  It might require a
  154. little bit of tweaking of some free BSD platforms that have really bad
  155. shells.
  156.  
  157.  
  158. ------------------------------
  159.  
  160. Subject:  INN must be really complicated since this FAQ is so long!
  161.  
  162. No, it's just that the FAQ is very complete.  Part 2 is so long because
  163. it includes a tutorial that tries to turn a beginner into an TCP/IP
  164. protocol expert.  Part 3 is long because the FAQ maintainer is
  165. constantly trying to add every question ever asked on
  166. news.software.nntp.  Maybe someone should volunteer to maintain an
  167. index.
  168.  
  169. A lot of the material could be integrated into the Install.ms doc.
  170.  
  171.  
  172. ------------------------------
  173.  
  174. Subject:  Can I run C News with INN?
  175.  
  176. No.  INN handles all article reception, filing, forwarding, and
  177. expiration.  You will get a corrupted database if you try to
  178. run INN with any other news system.  For testing, you can probably shut
  179. down your old system, bring up INN, and then reverse the process.  (INN
  180. uses the C News history file and DBZ database, so if you don't run C News
  181. you will have to do some fiddling around with those files.)
  182.  
  183.  
  184. ------------------------------
  185.  
  186. Subject:  Can I run NNTP with INN?
  187.  
  188. There's a confusion here.  NNTP is a protocol, defined in RFC 977.  There
  189. is also an implementation of the protocol, NNTP1.5, that many people call
  190. NNTP.  When there was only one implementation of the protocol, that was
  191. okay, but now that there are other implementations (for example, INN) it
  192. is getting confusing.  It would be as if "sendmail" were named "smtp."
  193. Please try to be clear -- do you mean the NNTP protocol, or the NNTP
  194. reference implementation currently maintained by Stan Barber?
  195.  
  196.  
  197. ------------------------------
  198.  
  199. Subject:  Can I run the reference implementation (NNTP1.5) with INN?
  200.  
  201. The quick answer is no.  INN listens on the NNTP port and handles all
  202. incoming traffic.  It receives articles, files them, and arranges for
  203. them to be forwarded to your peers.  If a site connects that is not
  204. listed as a peer (e.g., a local workstation that does newsreading) then
  205. the INN server hands the connection off to another program that handles
  206. just the NNTP commands that newsreaders use.  By default, this is nnrpd
  207. (notice the "r"), which implements the NNTP protocol for newsreaders
  208. (for example, it includes the POST command but not the IHAVE command).
  209. You can run the reference implementation server instead of nnrpd if you
  210. want.  Doing this can be useful if you have clients that want to do
  211. both reading and article transfer.
  212.  
  213.  
  214. ------------------------------
  215.  
  216. Subject:  Can I run INN on my UUCP-only machine?
  217.  
  218. Sure.  While not designed for this, several people are running INN on
  219. machines that do not have IP-connectivity (such as UUCP-only hosts) and
  220. are quite happy with it.  You might want to give it a try, especially if
  221. you think you will be joining the Internet some day.
  222.  
  223.  
  224. ------------------------------
  225.  
  226. Subject:  Suppose I have a 286 machine?
  227.  
  228. Won't work.  INN is designed to be a memory hog; a server that has been up
  229. for a few days while will have a working set size of a few to several
  230. megabytes, although not all of it will be resident.  For example, the
  231. server keeps the active file and list of who gets what in memory, as well
  232. as all articles that it is receiving.  Unless you can do things like
  233. "malloc(64 * 1024)" without pain, INN won't work on your machine.
  234.  
  235.  
  236. ------------------------------
  237.  
  238. Subject:  Does INN implement NOV, xthread (trn) or xuser/xmotd (tin) commands?
  239.  
  240. Newsreaders all need some way to quickly grab data from
  241. a range of articles.  trn, tin, nn, and others each developed
  242. their own database format, and their own extensions to the NNTP
  243. protocol for clients to read the database.  Then, Geoff Collyer
  244. invented NOV, the database to end all other databases.
  245.  
  246. Rather than support a different database format for each newsreader,
  247. INN supports Geoff Collyer's news overview database, NOV.  INN includes
  248. everything you need to create/maintain/expire NOV's .overview files.
  249. You only need Geoff's distribution (available via FTP on world.std.com
  250. src/news/nov.dist.tar.Z) if you want to see how he implements things,
  251. or to get his client library (useful when building some newsreaders).
  252.  
  253. It is very easy to configure INN to use NOV.  Read Part 3/4 of
  254. this faq: Subject: Cookbook example setting up NOV ("overchan")
  255. NB: The NOV code in INN 1.3 is buggy.  Use 1.4 or higher.
  256.  
  257. The xover command is used for querying the NOV database.  The xover
  258. command is very smart in that if the article has been canceled, the
  259. data isn't given out.  If the article is so new that it's data isn't in
  260. the NOV database, nnrpd opens the article and digs out the data.  xhrd
  261. and xpat make every effort to use NOV data before they dig the data out
  262. of the actual articles, thus making them considerably faster than other
  263. implementations.  The "xoverview" command does not exist.  If your
  264. server supports this command you need to upgrade.
  265.  
  266. What about TRN's xthread command?
  267.  
  268. The xthread command has code but it is not supported; look at
  269. $inn/nnrpd/nnrpd.h.  This code will probably vanish after 1.4.
  270.  
  271. What about TIN's many commands?
  272.  
  273. Tin commands are not supported.  However, other people have
  274. added TIN support.  See the next section.
  275.  
  276.  
  277.  
  278. ------------------------------
  279.  
  280. Subject:  Is an ident or authorization protocol supported?
  281.  
  282. An unsupported patch for nnrpd to add ident support can be found via
  283. FTP at ftp.csie.nctu.edu.tw:/pub/news/nnrpd-identd-patch.shar.gz.  It
  284. includes patches to add tin's xuser and xmotd commands as well as a
  285. list subscription system. (skhuang@csie.nctu.edu.tw)
  286.  
  287. Remember: ident information is only as valid as the server you connect
  288. to.  Any fool with root access (or anyone with a PC or Mac) can create
  289. a bogus ident server that will give out whatever information they want
  290. you to see.  It's not an authorization or identification protocol, it's
  291. just informational.
  292.  
  293. The authd protocol is added to nnrpd by <nhiro@isci.kyutech.ac.jp>.
  294. This unsupported patch can be found in
  295. ftp.geophys.hokudai.ac.jp:/pub/network/news/inn/patches/authd-patch-1.3.tar.gz
  296. The documentation is in Japanese.  Good luck.
  297.  
  298. In a future release, you will be able to log all POST commands with
  299. ident information if you so choose.  (Maybe INN 1.5)
  300.  
  301.  
  302. ------------------------------
  303.  
  304. Subject:  Does INN do UUCP batching like C News?
  305.  
  306. Not as part of the standard distribution.  The batching system right
  307. now is better than B News, but Rich has said he will be working on
  308. improving that part of INN in a future release.  Christophe Wolfhugel
  309. <Christophe.Wolfhugel@grasp.insa-lyon.fr> has written a package that is
  310. very much like the C News batching system, however.  You can find it on
  311. grasp.insa-lyon.fr in the pub/unix/news/inn/contrib directory.
  312.  
  313. Version 3 of Christophe's package includes a shell version and a Perl
  314. version.  Version 4, not yet planned will only be in Perl.  The
  315. configuration file has evolved from older releases in order to support
  316. new features like "minimum batching".
  317.  
  318.  
  319. ------------------------------
  320.  
  321. Subject:  Help!  How do I configure this beast?
  322.  
  323. READ AND FOLLOW THE "Install.ms" FILE.  This FAQ is meant to add to
  324. what Install.ms says not replace it.
  325.  
  326. Many people that thought the Install.ms doc was incomplete later
  327. re-read the "First Time Installation" portion and were amazed how much
  328. they missed (or just plain skipped) the first time.
  329.  
  330. You should also purchase the O'Reilly And Associates book on Managing
  331. Usenet to give yourself a good grounding on how to run a site.
  332.  
  333.  
  334. ------------------------------
  335.  
  336. Subject:  How do I thank the FAQ maintainer?
  337.  
  338. If you find this document useful, please consider making a donation to
  339. the maintainer's favorite charity:
  340.  
  341.     The Personal Liberty Fund
  342.     PO Box 11335
  343.     New Brunswick, NJ 08906-1335
  344.     USA
  345.  
  346. The PLF is a legal and educational organization which helps people in
  347. New Jersey, USA.  They have many on-going projects which range from
  348. combating youth suicide to legal advocacy.  Their Anti-Violence Project
  349. runs a phone hotline for reporting gay-bashing which helps hundreds of
  350. people a year.  The PLF is an all-volunteer organization and couldn't
  351. survive without donations.  The PLF is recognized by the IRS as a
  352. 501(c)3 tax-exempt charity.  Donations are tax deductible to the
  353. fullest extent of the law (U.S. citizens only).  Please write "INN" in
  354. the memo field of the check.
  355.  
  356.  
  357. ======================================================================
  358.             SPECIFIC NOTES FOR SPECIFIC OPERATING SYSTEMS
  359. ======================================================================
  360.  
  361.  
  362. ------------------------------
  363.  
  364. Subject:  AIX tips
  365.  
  366. Q: When I run news.daily, there's always a few lines of error
  367. messages at the end of the output:
  368.  
  369.     compress: bad file number
  370.  
  371. A:  AIX /usr/bin/compress has a bug when compressing files with zero
  372. length. Then it spits out this error.  Solution: Ignore it or use a
  373. different compress programm and change config.data accordingly.
  374. (from Kurt Jaeger <pi@rus.uni-stuttgart.de>)
  375.  
  376. Q:  innwatch doesn't work well from /etc/inittab, does it?
  377.  
  378. Q:  Nope.  Instead, you can create a "subsystem" with this command:
  379.  
  380. mkssys -s innwatch -p /usr/local/news/bin/innwatch -u news -G news -S -n 15 -f 9
  381.  
  382. Note that your path to innwatch may differ, depending on where you
  383. decided to install the inn components.  You also need to enter the
  384. command as one long line.
  385.  
  386. This will create a subsystem named "innwatch" belonging to an SRC group
  387. named "news".  The "-S" means that it uses signals for SRC to tell it
  388. when to stop and the "-n" is the SIGTERM signal, for normal shutdown,
  389. and the "-f" is the SIGKILL signal, which is sent if the process does
  390. not stop within 20 seconds.  Then, modify rc.news to issue the command
  391.  
  392.     startsrc -s innwatch
  393.  
  394. to get innwatch going.  That's it!
  395.  
  396. Shane Castle <swcxt@boco.co.gov, swcxt@csn.org>
  397.  
  398.  
  399. ------------------------------
  400.  
  401. Subject:  SunOS 4.1.2 tips
  402.  
  403. SunOS 4.1.2 (but not 4.1.1 or 4.1.3) broke the write system call but a
  404. patch is available.  Any write could fail "half way", it is just more
  405. likely to happen when writing large files and in-core DBZ writes the
  406. history file out in one chunk.  See the "Known Problems" section of the
  407. installation manual.
  408.  
  409.  
  410. ------------------------------
  411.  
  412. Subject:  Ultrix tips
  413.  
  414. Tip #1:  Ultrix has a "mmap()" function, but it doesn't do the same
  415. thing as the SunOS/BSD mmap() function.  Therefore, do not configure
  416. INN to use mmap() on a Ultrix system.  INN wants to find a mmap()
  417. function that is like the one on SunOS/BSD systems.
  418.  
  419. Tip #2:  The sendsys script breaks Ultrix 'nawk'.  You can make
  420. a 1-line change or you can switch to 'awk' or "gawk".
  421. Original line:
  422.     ${AWK} "/^$1"'[/:\\]/,/[^\\]$/' ${NEWSFEEDS} >${TEMP}
  423. Modified line:
  424.     ${AWK} "/^$1"'[\/:\\]/,/[^\\]$/' ${NEWSFEEDS} >${TEMP}
  425. The original line will work with awk, gawk, but not nawk.
  426. The modified line will work with awk, gawk, or nawk.
  427. If you have gawk running on your machine use it.  Otherwise, switch to
  428. awk.
  429.  
  430. Tip #3: The syslog on Ultrix sucks rotten eggs and Digital refuses to
  431. fix it.  (source: everyone that uses Ultrix and has ever used other
  432. systems)  Luckily, you can replace it with the routine that comes with
  433. INN.  However, some people have had better luck installing the syslog
  434. that can be found on
  435. "gatekeeper.dec.com:/pub/DEC/jtkohl-syslog-complete.tar.Z".  It still
  436. works with old clients but does new-style syslogging, too.  Works great
  437. for me so far.  (this information from:  nelson@reed.edu (Nelson
  438. Minar)).  The syslog that is shipped with INN works pretty well but
  439. there have been some claims that some old clients don't like it.
  440.  
  441.  
  442. ------------------------------
  443.  
  444. Subject:  HP-UX tips
  445.  
  446. Q.  My logs keep telling me there is no space for articles
  447. A.  Edit innwatch.ctl to use "bdf" instead of "df".
  448.  
  449. Q. I am running inn on an HP machine. INN won't start up automatically.
  450. I can start it manually.  There is no problem with news or INN once
  451. it is started.
  452.  
  453. A.  Try adding a "sleep 10" to the bottom of /etc/rc.news, or in
  454. /etc/rc, right after /etc/rc.news is invoked.  On some machines,
  455. including HP, the shell started by "#!/bin/sh" when /etc/rc is executed
  456. will exit before innd has disassociated itself from that shell.  This
  457. causes innd to exit, sometimes without printing an error message.
  458. (source: pjoslin@mbvlab.wpafb.af.mil (Paul Joslin ))
  459.  
  460. This problem goes away if you set HAVE_SETSID to "DO".  Something to do
  461. with Posix Session Leader concepts.  Ick.  (source: Steve Howie 
  462. <scotty@piranha.cs.uoguelph.ca>)
  463.  
  464. HP-UX 8.x and 9.x users might find a problem with getting innwatch to
  465. start up.  People have found that having "at" start it seems to work
  466. more reliably than other methods:
  467.  
  468. ${DOINNWATCH} && {
  469.     echo "${INNWATCH} &" | su ${NEWSUSER} -c 'at now + 2 min' > /dev/null
  470. }
  471.  
  472. The '&' in the command line prevents innwatch from taking up an at-job 
  473. slot.  SysV-style crons have a per-category and overall limit on the 
  474. number of jobs executing simultaneously.
  475.  
  476.  
  477. ------------------------------
  478.  
  479. Subject:  Pyramid and system's where only root can have "cron" jobs.
  480.  
  481. Your cron jobs may not work if you use:
  482.  
  483.     su news -c /usr/lib/news/bin/news.daily delayrm expireover
  484.  
  485. Instead, you must put the entire command in quotes.  Like this:
  486.  
  487.     su news -c "/usr/lib/news/bin/news.daily delayrm expireover"
  488.  
  489. Look for "Pyramid" in part ??? of this FAQ for details.
  490.  
  491. ------------------------------
  492.  
  493. Subject:  System V based Unixes (SVR4, Solaris 2.x, SCO ODT 3.0, A/UX, ...)
  494.  
  495. If you are running any non-BSD (i.e. System V based) Unix you MUST have
  496. the following option set:
  497.  
  498. ##  How should close-on-exec be done?  Pick IOCTL or FCNTL.
  499. #### =()<CLX_STYLE              @<CLX_STYLE>@>()=
  500. CLX_STYLE               FCNTL
  501.  
  502. This includes SVR4, Solaris 2.x, A/UX and SCO ODT 3.0.  This is clearly
  503. stated in the Install.ms file and repeated here since so many people
  504. post to news.software.nntp after ignoring the warnings.
  505.  
  506. If it isn't FCNTL, you'll get tons of overchan processes hanging
  507. around.  (source: Philip Gladstone <philip@charon.cto.citicorp.com>)
  508.  
  509. In SCO ODT 3.0 and MOST systems, innd will link and run if you use
  510. IOCTL but eventually will stop answering incoming calls.
  511.  
  512. Don't be fooled.  Just because it compiles doesn't mean it's going to
  513. work.
  514.  
  515. If you start innd on an AT&T SysV Rel 4.0 machine and get syslog
  516. messages like:
  517.     localhost:15 cant setsockopt(SNDBUF) Protocol error
  518.     localhost:15 cant setsockopt(RCVBUF) Protocol error
  519. then you should FIRST try to change HAVE_UNIX_DOMAIN to "DONT" in
  520. config.data.  If that doesn't fix the problem, you should comment out
  521. the "setsockopt()" calls and things will work.
  522.  
  523. Many SVR4 for i486 binaries (sendmail, mh, vmail, innd, rnews are now
  524. on ftp.germany.eu.net in pub/comp/i486/svr4/*.SVR4.tgz But remember
  525. that some of the above need site specific changes, so their usefulness
  526. may be limited.
  527.  
  528. If your SVR4 system still doesn't run correctly, check the
  529. Solaris 2.x suggestions.
  530.  
  531.  
  532. ------------------------------
  533.  
  534. Subject:  Solaris 2.x special needs
  535.  
  536. Under Solaris 2.x (where x = 0, 1, 2 or 3) you need to change
  537. the file "getfqdn.c".  Find the lines that read:
  538.  
  539.     if (strchr(hp->h_name, '.') == NULL) {
  540.         /* Try to force DNS lookup if NIS/whatever gets in the way. */
  541.         (void)strncpy(temp, buff, sizeof buff);
  542.         (void)strcat(temp, ".");
  543.         hp = gethostbyname(temp);
  544.     }
  545.  
  546. and delete them.
  547.  
  548. Under Solaris 2.[012] (SunOS 5.0, 5.1, 5.2) you must add the following
  549. at the beginning of each file using gethostbyname():
  550.  
  551. #define gethostbyname __switch_gethostbyname
  552.  
  553. Under Solaris 2.3 gethostbyname() might work without changes depending
  554. on your configuration.  We haven't figured out when they work and when
  555. they don't.  If you run into problems, try to change "gethostbyname()"
  556. to "solaris_gethostbyname()" and then use the gethostbyname() listed in
  557. the Solaris Porting FAQ.  This isn't a perfect solution, because you
  558. now need a different binary for Solaris 2.[012] systems.
  559.  
  560. It would be great if someone were to submit a solaris_gethostbyname()
  561. function who's binary works under all Solaris revs and gives all the
  562. semantics of BSD gethostbyname().  In particular, one that doesn't have
  563. the problems discussed in sun bugid #1126573 or #1135988.  It would be
  564. amazing if this was submitted by one of the many Sun employees that
  565. flame the INN FAQ maintainer in comp.sys.sun.admin everytime he bitches
  566. about how much he hates Solaris 2.x. :-)
  567.  
  568. Under all Solaris 2.* versions there is a problem with innwatch.ctl.
  569. It expects to use "df -i" to find out how many inodes are free on your
  570. disk.  /usr/{sbin,5bin,bin}/df doesn't support the "-i" option.  You
  571. have to use "/usr/ucb/df -i" instead, since this version of df includes
  572. the "-i" option.
  573.  
  574.  
  575. ------------------------------
  576.  
  577. Subject:  Mac running A/UX 3.0
  578.  
  579. Tip #1: Use the INN malloc.
  580.  
  581. Tip #2:  If you are running INN 1.4 on a Mac running A/UX 3.0.1, Every
  582. so often, (generally when someone fires up a reader), INN goes beserk.
  583. Syslog says:
  584.  
  585.     innd: ME cant select Bad file number
  586.  
  587. This message repeats about 20 times per second.  It freezes up my
  588. computer and I need to reboot.
  589.  
  590. That's a kernel bug. You do have to reboot.
  591.  
  592. If you compiled inn with gcc, don't. My experience was that somehow, if
  593. INN was compiled with GCC the kernel bug is triggered, but that doesn't
  594. happen with cc.
  595.  
  596.  
  597. ------------------------------
  598.  
  599. Subject:  NOV problems on a Pyramid
  600.  
  601. Q:  I just turned on the overview stuff and I don't think news.daily is
  602. properly expiring the .overview files.  I'm using a Pyramid.
  603.  
  604. A:  Do you need quotes in your crontab entry?  Look at your news.daily
  605. report -- expire using "expireover delayrm" should take a few minutes.
  606. If it takes longer than, say, 10-20 minutes, then the keywords aren't
  607. being seen by news.daily so perhaps the commandline quoting is wrong.
  608.  
  609. i.e. you had:
  610.  
  611.     su news -c /usr/lib/news/bin/news.daily delayrm expireover
  612.  
  613. You should have:
  614.  
  615.     su news -c "/usr/lib/news/bin/news.daily delayrm expireover"
  616.  
  617.  
  618. ------------------------------
  619.  
  620. Subject:  Warnings to people that must set HAVE_UNIX_DOMAIN to DONT
  621.  
  622. Disclaimer:  First of all, if you have to set HAVE_UNIX_DOMAIN to DONT,
  623. YOU HAVE TO SET IT to DONT.  It's not a choice you can make, it's a
  624. description of the operating system that you purchased.  If you wrongly
  625. set this variable to DO your system isn't going to work *at* *all*.
  626.  
  627. When you use the POST via NNTP, you are talking to nnrpd.  nnrpd cleans
  628. up your headers, adds the missing headers that it is allowed to add,
  629. checks whatever it checks, and then submits the finalized version to
  630. innd.  How does it talk to innd?
  631. If you have HAVE_UNIX_DOMAIN set to DO, nnrpd opens a Unix domain
  632. socket and sends the text.  At this point it is talking to innd
  633. somewhat like ctlinnd does.  innd can trust that the post isn't
  634. forged since it is coming from a program trustworthy enough to
  635. get to the socket (which isn't much).
  636. If you have HAVE_UNIX_DOMAIN set to DONT, it has no choice but to open
  637. a socket to port 119, issue the "IHAVE" command, and send the text that
  638. way (just like a remote newsreader).  This means that innd (not another
  639. nnrpd) has to be at the other end of the pipe.  If it opens the
  640. connection and sees a "nnrpd" you're hosed and you get "441 480
  641. Transfer permission denied".  (Better the "441 480" message than an
  642. infinate loop of nnrpd's connecting to nnrpd's!)  To get innd to not
  643. hand off the connection to a nnrpd process, you must have the host's
  644. name in the hosts.nntp file.  (don't forget to do "ctlinnd reload
  645. hosts.nntp")
  646.  
  647. If you have your host's name in the hosts.nntp file, then any
  648. newsreader running on your nntphost must be "INN-aware" (i.e. that they
  649. issue the "mode reader" command) or they must read news via the file
  650. system instead of NNTP.
  651.  
  652. If you have NNTP-based newsreaders that can't send the "mode reader"
  653. command, you can try including "server: localhost" in your inn.conf
  654. file, but then you must have a different inn.conf file for the other
  655. machines.  If you can't do that, you have no other options but to
  656. recompile your newsreaders.
  657.  
  658. Remember, if you change your inn.conf file, you must shutdown and
  659. restart innd.  There is no "ctlinnd reload inn.conf" command.
  660.  
  661.  
  662. ------------------------------
  663.  
  664. Subject:  Alpha OSF tips:
  665.  
  666. To compile INN for the DEC Alpha, follow the instructions in the INN
  667. patch archive on ftp.pop.psu.edu:/pub/src/news/inn-patches
  668.  
  669. In rc.news you need to start $INNWATCH using the following:
  670.  
  671. ${DOINNWATCH} && {
  672.     echo "${INNWATCH} &" | su ${NEWSUSER} -c 'at now + 2 min' > /dev/null
  673. }
  674.  
  675. The '&' in the command line prevents innwatch from taking up an at-job
  676. slot.  SysV-style crons have a per-category and overall limit on the 
  677. number of jobs executing simultaneously.
  678.  
  679. -- 
  680. Tom Limoncelli -- tal@warren.mentorg.com (work) -- tal@plts.org (play)
  681. "Psst!  Hey, Anthony!  Y'know what I        | Disclaimer:  I do not
  682. like about existing?"  "Uh... uh... what?"  | speak for Mentor Graphics.
  683. "Possessing a physical extension."  -TSA    |
  684.  
  685.